﻿using System;
using Medianamik.Globalization;

namespace Medianamik.UI.Controls
{
    [Serializable]
    public class MedianamikLookupColumn
    {
        public MedianamikLookupColumn(string name, string headerTextResourceSet,
            string headerTextResourceKey)
        {
            Name = name;
            HeaderTextResourceSet = headerTextResourceSet;
            HeaderTextResourceKey = headerTextResourceKey;
        }

        public string HeaderTextResourceSet { get; private set; }
        public string HeaderTextResourceKey { get; private set; }
        public string Name { get; private set; }

        public string HeaderText
        {
            get
            {
                return Translator.Translate(HeaderTextResourceSet,
                                            HeaderTextResourceKey);
            }
        }
    }
}
